package org.csmz.class2333;

public class Example15 {
    public static void main(String[] args){
        int arr[] = {1, 3, 5, 7};
        double num = arr[0];
        for (int i=0; i<arr.length; i++){
            if (arr[i]>num);
            num = arr[i];
        }
        System.out.println("最大值为"+ num);
    }
}
